Justin fixes CoastalExplorer route handling.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 1 Apr 2005 20:06:16 +0000 (20:06 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 1 Apr 2005 20:06:16 +0000 (20:06 +0000)
gpsbabel/coastexp.c

index 9852089508317fb627f8071781584d172dacbdea..15b50aae3dfaf6fc8b9263565463a2dd5f49cf72 100755 (executable)
@@ -139,10 +139,11 @@ ce_start(void *data, const char *el, const char **attr)
                                // Create a CE route object and add it to the list of routes
                                currentRoute = (ce_route *) xcalloc(sizeof (ce_route), 1);
                                currentRoute->id=xstrdup(ap[1]);
-                               if (doing_rtes)
-                               currentRoute->r = route_head_alloc();
+                               if (doing_rtes) 
+                                       currentRoute->r = route_head_alloc();
                                QUEUE_INIT(&currentRoute->ce_mark_head);
-                               ce_add_route(currentRoute);
+                               if (doing_rtes) 
+                                       ce_add_route(currentRoute);
                        }
                }
        } else if (0 == strcmp(el, "Mark")) {